package com.example.front.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LineDto {
    @ApiModelProperty(value = "创建时间")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "产线名称")
    @NotBlank(message = "产线名称不能为空")
    private String name;

    @ApiModelProperty(value = "产线管理员id")
    @NotNull(message = "管理员不能为空")
    private Long userId;

    @ApiModelProperty(value = "产线管理员名称")
    private String userName;

    @ApiModelProperty(value = "车间id")
    @NotNull(message = "车间不能为空")
    private Long workshopId;

    @ApiModelProperty(value = "车间名称")
    private String workshopName;

    //工艺数
    private Long craftNum = 0L;
    private Long tenantId;
}
